package com.zy.openchat.core.model.message;

public class HtmlDocumentInfo {

    private String display_url;


    public String icon;

    public String title;

    public String content;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public String getDisplay_url() {
        return display_url;
    }

    public void setDisplay_url(String display_url) {
        this.display_url = display_url;
    }


    public static String checkUrl(String checkUrl){
        String newUrl = checkUrl;
        if (checkUrl.startsWith("http://"))
            newUrl = checkUrl;

        if (checkUrl.startsWith("www"))
            newUrl = "http://" + checkUrl;

        return newUrl;
    }

}
